package assets;

import java.io.IOException;

import org.anddev.andengine.audio.music.Music;
import org.anddev.andengine.audio.music.MusicFactory;
import org.anddev.andengine.audio.music.MusicManager;

import android.content.Context;

public class Musica {

	public Music musica;
	
	public Musica (String arquivoDaMusica, Context contexto, MusicManager mm) {
	    MusicFactory.setAssetBasePath("mfx/");
	    try {
	    	musica = MusicFactory.createMusicFromAsset(mm, contexto, arquivoDaMusica);
	    	musica.setLooping(true);
	    } catch (final IOException e) {
	    	
	    }
	}
}
